package service;

import bean.SubCategory;
import java.util.List;

public interface SubCategoryService {
    List<SubCategory> getAllSubCategories();
    List<SubCategory> getSubCategoriesByCategoryId(Integer categoryId);
    SubCategory getSubCategoryById(int id);
    int addSubCategory(SubCategory subCategory);
    int deleteSubCategory(Integer id);
    int addSubCategoryTelevisionRelation(int subCategoryId, int televisionId);
    void addSubCategory(String name, int categoryId);
    void updateSubCategory(int id, String newName);
    boolean updateSubCategory(SubCategory subCategory);
} 